<template>
    <div>
       <p>父组件当前的值： {{number}}</p>
       <CustonSubComponent @updata-count="updataEmitCount"/> 
    </div>
</template>

<script setup>
import CustonSubcompnent from './CustonSubcompnent.vue';
import { ref } from "vue";
const number = ref(10);
const updataEmitCount = (value) => {
    number.value += value;
}
</script>